<?
include_once("/var/www/html/new/com.inc.php");
include_once("/var/www/html/new/d/class/OrderRecord.php");
$ac=$GLOBALS['_ac'];
$pw=$GLOBALS['_pw'];
$s = new SoapClient(null,array("location" => "http://localhost/open/openService/pft_insideMX.php","uri" => "www.16u.com?ac_16u=$ac|pw_16u=$pw|auth_16u=true"));
$method=$_REQUEST['method'];

if($method=='order_resend'){// 先行淘宝同步订单重发短信
	$ordernum = $_REQUEST['ordernum']+0;
	$or=new OrderRecord($ordernum,$s);
	$orders=$or->info();
	if((string)$orders['mainOrder']->UUremsg>=3){
		$out = array(
			"outcome"=>-1,
			"msg"=>"短信重发次数不能超过2次"
		);
	}else{
		$out['outcome'] = $or->resendMsg()? 1:-1;
	}
	echo json_encode($out);
	exit;
}
?>